package vim.meet.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class BeforeAdviceExample {
	
	@Before("cn.freemethod.aspect.MyAspectPointcut.targetBefore()")
	public void doBefore()
	{
		System.out.println("in:"+BeforeAdviceExample.class.getName()+" doBefore method!");
	}
	
	@Before("execution(* cn.freemethod.aspect.target.BeforeTarget.before())")
	public void doBeforeTwo()
	{
		System.out.println("in:"+BeforeAdviceExample.class.getName()+" doBeforeTwo method!");
	}

}
